﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="GroupsManage.aspx.cs" Inherits="Common_GroupsManage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Titile" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" Runat="Server">
  <InfoLight:WebDataSource ID="Master" runat="server" AutoApply="True" WebDataSetID="WMaster" DataMember="GROUPS">
        </InfoLight:WebDataSource>
        <InfoLight:WebDefault ID="WebDefault1" runat="server" DataMember="GROUPS" DataSourceID="Master">
            <Fields>
                <InfoLight:DefaultFieldItem DefaultValue="R000" FieldName="GROUPID" />
            </Fields>
        </InfoLight:WebDefault>
        <InfoLight:WebDataSource ID="wdsGClass" runat="server" SelectAlias="Usasdb" SelectCommand="select &#13;&#10;GroupClass.GClass,&#13;&#10;GroupClass.GClassName &#13;&#10;from &#13;&#10;GroupClass">
        </InfoLight:WebDataSource>
        <InfoLight:WebValidate ID="WebValidate1" runat="server" AltRowCss="" DataMember="GROUPS"
            DataSourceID="Master" ForeColor="Red" RowCss=""><Fields>
<InfoLight:ValidateFieldItem FieldName="GROUPID" CheckNull="True"></InfoLight:ValidateFieldItem>
<InfoLight:ValidateFieldItem FieldName="GROUPNAME" CheckNull="True"></InfoLight:ValidateFieldItem>
</Fields>
</InfoLight:WebValidate>
  <InfoLight:WebNavigator ID="WebNavigator1" runat="server" BindingObject="wgvMaster"
            Width="100%" StatusStrip="WebStatusStrip1" CssClass="NavigatorBar" 
        CtlHeight="25">
            <NavControls>
                <InfoLight:ControlItem ControlName="Add" ControlText="穝糤" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/add_C.gif" MouseOverImageUrl="../image/uipics/add2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/add3_C.gif"/>
                <InfoLight:ControlItem ControlName="Apply" ControlText="郎" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/apply_C.gif" MouseOverImageUrl="../image/uipics/apply2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/apply3_C.gif"/>
                <InfoLight:ControlItem ControlName="Abort" ControlText="斌" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/abort_C.gif" MouseOverImageUrl="../image/uipics/abort2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/abort3_C.gif"/>
                <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/query_C.gif" MouseOverImageUrl="../image/uipics/query2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/query3_C.gif"/>
            </NavControls>
            <NavStates>
                <InfoLight:WebNavigatorStateItem StateText="Initial" />
                <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                <InfoLight:WebNavigatorStateItem StateText="Editing" />
                <InfoLight:WebNavigatorStateItem StateText="Applying" />
                <InfoLight:WebNavigatorStateItem StateText="Changing" />
                <InfoLight:WebNavigatorStateItem StateText="Querying" />
                <InfoLight:WebNavigatorStateItem StateText="Printing" />
            </NavStates>
        </InfoLight:WebNavigator>
          <InfoLight:webgridview id="wgvMaster" runat="server"
            cellpadding="5" datasourceid="Master" forecolor="#333333" width="100%" 
        AbortIconUrl="../Image/UIPics/Abort.gif" AddIconUrl="../Image/UIPics/Add.gif" 
        ApplyIconUrl="../Image/UIPics/Apply.gif" 
        CancelIconUrl="../Image/UIPics/Cancel.gif" 
        MouseOverAbortIconUrl="../Image/UIPics/Abort2.gif" 
        MouseOverAddIconUrl="../Image/UIPics/Add2.gif" 
        MouseOverApplyIconUrl="../Image/UIPics/Apply2.gif" 
        MouseOverCancelIconUrl="../Image/UIPics/Cancel2.gif" 
        MouseOverOKIconUrl="../Image/UIPics/OK2.gif" 
        MouseOverQueryIconUrl="../Image/UIPics/Query2.gif" 
        OKIconUrl="../Image/UIPics/OK.gif" QueryIconUrl="../Image/UIPics/Query.gif" 
        HeaderStyleWrap="False" BackColor="White" BorderColor="White" 
        BorderStyle="Groove" BorderWidth="2px" PageSize="15">
            <PagerSettings Mode="NumericFirstLast" />
<FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True"></FooterStyle>
            <navcontrols>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>
            <Columns>
                 <asp:TemplateField ShowHeader="False">
                    <edititemtemplate>
<asp:ImageButton id="ImageButton1" runat="server" Text="Update" CausesValidation="True" ImageUrl="~/Image/UIPics/OK.gif" CommandName="Update"></asp:ImageButton>&nbsp;
<asp:ImageButton id="ImageButton2" runat="server" Text="Cancel" CausesValidation="False" ImageUrl="~/Image/UIPics/Cancel.gif" CommandName="Cancel"></asp:ImageButton>
</edititemtemplate>
                    <headerstyle wrap="False" />
                    <itemtemplate>
<asp:ImageButton id="ImageButton3" runat="server" Text="Edit" CausesValidation="False" ImageUrl="~/Image/UIPics/Edit.gif" CommandName="Edit"></asp:ImageButton>&nbsp;
<asp:ImageButton id="ImageButton4" runat="server" Text="Delete" CausesValidation="False" ImageUrl="~/Image/UIPics/Delete.gif" CommandName="Delete"></asp:ImageButton>
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="设置用户">
                    <edititemtemplate>
                    <center>
                    <a href="#">
                        <img alt="设置用户" style="border-style:none; " src="../Image/MenuTree/288688.png" /> 
                        </a></center>
                    
</edititemtemplate>
                    <footertemplate>
                    <center>
                    <a href="#">
                        <img alt="设置用户" style="border-style:none; " src="../Image/MenuTree/288688.png" /> 
                        </a></center>
                    
</footertemplate>
                    <itemtemplate>
                    <center>                    
                        <img alt="设置用户" style="border-style:none; cursor:pointer;" onclick="javascript:window.open ('GUser.aspx?gid=<%#Eval("GROUPID") %>&gname=<%#Eval("GROUPNAME") %>', 'newwindow', 'height=640, width=610, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no') " src="../Image/MenuTree/288688.png" /> 
                    </center>
                    
</itemtemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="GROUPID" HeaderText="组编码" SortExpression="GROUPID" />
                <asp:BoundField DataField="GROUPNAME" HeaderText="组名" SortExpression="GROUPNAME" />
                <asp:BoundField DataField="DESCRIPTION" HeaderText="说明" SortExpression="DESCRIPTION" />
                <asp:BoundField DataField="MSAD" HeaderText="AD组" SortExpression="MSAD" Visible="False" />
                <asp:TemplateField HeaderText="角色" SortExpression="ISROLE">
                    <edititemtemplate>
<InfoLight:WebDropDownList id="WebDropDownList1" runat="server" Width="80px" __designer:wfdid="w3" SelectedValue='<%# Bind("ISROLE") %>' AutoInsertEmptyData="False" Filter FilterObject OnlyShowSelectText="False" DriverObject><asp:ListItem Selected="True">Y</asp:ListItem>
<asp:ListItem>N</asp:ListItem>
</InfoLight:WebDropDownList>
</edititemtemplate>
                    <footertemplate>
<InfoLight:WebDropDownList id="WebDropDownList1" runat="server" Width="80px" __designer:wfdid="w6" SelectedValue='<%# Bind("ISROLE") %>' AutoInsertEmptyData="False" Filter FilterObject OnlyShowSelectText="False" DriverObject><asp:ListItem Selected="True">Y</asp:ListItem>
<asp:ListItem>N</asp:ListItem>
</InfoLight:WebDropDownList>
</footertemplate>
                    <itemtemplate>
<asp:Label id="Label1" runat="server" Text='<%# Bind("ISROLE") %>' __designer:wfdid="w1"></asp:Label>
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="组分类" SortExpression="GClass">
                    <edititemtemplate>
<InfoLight:WebDropDownList id="WebDropDownList2" runat="server" DataSourceID="wdsGClass" Width="120px" SelectedValue='<%# Bind("GClass") %>' AutoInsertEmptyData="False" Filter FilterObject OnlyShowSelectText="False" DriverObject __designer:wfdid="w2" DataTextField="GClassName" DataValueField="GClass"></InfoLight:WebDropDownList> 
</edititemtemplate>
                    <footertemplate>
<InfoLight:WebDropDownList id="WebDropDownList2" runat="server" DataSourceID="wdsGClass" Width="120px" SelectedValue='<%# Bind("GClass") %>' AutoInsertEmptyData="False" Filter FilterObject OnlyShowSelectText="False" DriverObject __designer:wfdid="w3" DataTextField="GClassName" DataValueField="GClass"></InfoLight:WebDropDownList> 
</footertemplate>
                    <itemtemplate>
<InfoLight:WebDropDownList id="WebDropDownList2" runat="server" DataSourceID="wdsGClass" Width="120px" Enabled="False" SelectedValue='<%# Bind("GClass") %>' AutoInsertEmptyData="False" Filter FilterObject OnlyShowSelectText="True" DriverObject __designer:wfdid="w1" DataTextField="GClassName" DataValueField="GClass"></InfoLight:WebDropDownList> 
</itemtemplate>
                </asp:TemplateField>
</Columns>

<RowStyle BackColor="#EFF3FB"></RowStyle>

<EditRowStyle BackColor="#2461BF"></EditRowStyle>

<SelectedRowStyle BackColor="#D1DDF1" ForeColor="#333333" Font-Bold="True"></SelectedRowStyle>

<PagerStyle BackColor="LightBlue" ForeColor="White" HorizontalAlign="Center"></PagerStyle>

<HeaderStyle BackColor="DeepSkyBlue" ForeColor="White" Font-Bold="True"></HeaderStyle>

<AlternatingRowStyle BackColor="White" BorderColor="White"></AlternatingRowStyle>
            <AddNewRowControls>
                <InfoLight:AddNewRowControlItem ControlID="WebDropDownList1" ControlType="DropDownList"
                    FieldName="ISROLE" />
                <InfoLight:AddNewRowControlItem ControlID="WebDropDownList2" ControlType="DropDownList"
                    FieldName="GClass" />
            </AddNewRowControls>
</InfoLight:webgridview>
</asp:Content>

